/*
 * Copyright (c) 2005, 2014 vacoor
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 */
package org.vacoor.nothing.misc.express.usps.api.data;


import javax.xml.bind.annotation.*;

/**
 * USPS 地址
 *
 * @author vacoor
 */
@XmlRootElement(name = "Address")
@XmlAccessorType(XmlAccessType.FIELD)
public class UspsAddress {
    @XmlAttribute(name = "ID")
    private String id;
    @XmlElement(name = "FirmName")
    private String firmName = "";         // Firm Name
    @XmlElement(name = "Address1")
    private String addr1 = "";            // Street Address
    @XmlElement(name = "Address2")
    private String addr2 = "";            // Secondary Address
    @XmlElement(name = "City")
    private String city = "";             // City
    @XmlElement(name = "State")
    private String state = "";            // State
    @XmlElement(name = "Zip5")
    private String zip5 = "";             // Zip 5
    @XmlElement(name = "Zip4")
    private String zip4 = "";             // Zip 4

//    @XmlElement(name = "Error")
//    private Err err;                    // 响应时的错误信息

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getFirmName() {
        return firmName;
    }

    public void setFirmName(String firmName) {
        this.firmName = firmName;
    }

    public String getAddr1() {
        return addr1;
    }

    public void setAddress1(String addr1) {
        this.addr1 = addr1;
    }

    public String getAddr2() {
        return addr2;
    }

    public void setAddress2(String addr2) {
        this.addr2 = addr2;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getZip5() {
        return zip5;
    }

    public void setZip5(String zip5) {
        this.zip5 = zip5;
    }

    public String getZip4() {
        return zip4;
    }

    public void setZip4(String zip4) {
        this.zip4 = zip4;
    }

//    public Err getErr() {
//        return err;
//    }

//    public void setErr(Err err) {
//        this.err = err;
//    }

    @Override
    public String toString() {
        return "Address{" +
                "id='" + id + '\'' +
                ", firmName='" + firmName + '\'' +
                ", addr1='" + addr1 + '\'' +
                ", addr2='" + addr2 + '\'' +
                ", city='" + city + '\'' +
                ", state='" + state + '\'' +
                ", zip5='" + zip5 + '\'' +
                ", zip4='" + zip4 + '\'' +
//                ", err=" + err +
                '}';
    }
}
